package com.woniuxy.service;

import com.woniuxy.entity.Perm;
import com.woniuxy.entity.ResponseEntity;
import com.woniuxy.entity.Role;

import java.util.List;
import java.util.Set;

public interface RbacPermService {
    ResponseEntity selectAll(int currentPage, int pageSize);
    ResponseEntity addPerm(Perm perm);
    ResponseEntity deletePermById(int id);
    List<Perm> findPermByName(String name);
    ResponseEntity editOne(Perm perm);
    ResponseEntity search(int currentPage, int pageSize,String name,String code);
    Set<String> findPermBySetRoles(String username);
}
